package com.itheima.service.impl;

import com.itheima.dao.PatientDao;
import com.itheima.entity.Patient;
import com.itheima.service.PatientService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
@Service
public class PatientServiceImpl implements PatientService {
    @Autowired
    private PatientDao patientDao;
    @Override
    public List<Patient> findAllPatient() {
        return patientDao.findAlPatient();
    }

    @Override
    public void addPatient(Patient patient) {
        patientDao.addPatient(patient);
    }
}
